﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class BunkerInventoryManagerMapping
    {
        public int BunkerInventoryManagerMappingID = 0;
        public string profit_centre_fullname = string.Empty;
        public string client = string.Empty;
        public string description = string.Empty;
        public string dim_value = string.Empty;
        public string rel_value = string.Empty;
        public string client_map = string.Empty;
        public string description_map = string.Empty;
        public string dim_value_map = string.Empty;
        public string rel_value_map = string.Empty;

        public BunkerInventoryManagerMapping()
        {
        }
        public BunkerInventoryManagerMapping(SqlDataReader rd)
        {
            BunkerInventoryManagerMappingID = rd["BunkerInventoryManagerMappingID"] is DBNull ? BunkerInventoryManagerMappingID : Convert.ToInt32(rd["BunkerInventoryManagerMappingID"]);
            profit_centre_fullname = rd["profit_centre_fullname"] is DBNull ? profit_centre_fullname : rd["profit_centre_fullname"].ToString();
            client = rd["client"] is DBNull ? client : rd["client"].ToString();
            description = rd["description"] is DBNull ? description : rd["description"].ToString();
            dim_value = rd["dim_value"] is DBNull ? dim_value : rd["dim_value"].ToString();
            rel_value = rd["rel_value"] is DBNull ? rel_value : rd["rel_value"].ToString();
            client_map = rd["client_map"] is DBNull ? client_map : rd["client_map"].ToString();
            description_map = rd["description_map"] is DBNull ? description_map : rd["description_map"].ToString();
            dim_value_map = rd["dim_value_map"] is DBNull ? dim_value_map : rd["dim_value_map"].ToString();
            rel_value_map = rd["rel_value_map"] is DBNull ? rel_value_map : rd["rel_value_map"].ToString();
        }
    }
}
